import { createComponent } from "./create-component"

export const SelectAnatomy = createComponent((props) => {
  const { palette, ...rest } = props
  return (
    <svg
      width={400}
      height={300}
      viewBox="0 0 400 300"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      {...rest}
    >
      <rect x={53} y={64} width={294} height={45} rx={6} fill={palette[5]} />
      <path
        fillRule="evenodd"
        clipRule="evenodd"
        d="M71 86.5C71 84.0147 73.0147 82 75.5 82H196.5C198.985 82 201 84.0147 201 86.5C201 88.9853 198.985 91 196.5 91H75.5C73.0147 91 71 88.9853 71 86.5Z"
        fill={palette[3]}
      />
      <rect x={53} y={117} width={294} height={136} rx={6} fill={palette[3]} />
      <rect x={53} y={164} width={294} height={42} fill={palette[2]} />
      <path
        fillRule="evenodd"
        clipRule="evenodd"
        d="M71 139.5C71 137.015 73.0147 135 75.5 135H206.5C208.985 135 211 137.015 211 139.5C211 141.985 208.985 144 206.5 144H75.5C73.0147 144 71 141.985 71 139.5Z"
        fill={palette[15]}
      />
      <path
        fillRule="evenodd"
        clipRule="evenodd"
        d="M71 184.5C71 182.015 73.0147 180 75.5 180H306.5C308.985 180 311 182.015 311 184.5C311 186.985 308.985 189 306.5 189H75.5C73.0147 189 71 186.985 71 184.5Z"
        fill={palette[15]}
      />
      <path
        fillRule="evenodd"
        clipRule="evenodd"
        d="M71 230.5C71 228.015 73.0147 226 75.5 226H246.5C248.985 226 251 228.015 251 230.5C251 232.985 248.985 235 246.5 235H75.5C73.0147 235 71 232.985 71 230.5Z"
        fill={palette[15]}
      />
      <path
        d="M342.284 200.298C341.756 200.138 341.281 200.244 340.911 200.377C340.594 200.004 340.066 199.658 339.379 199.658C338.852 199.658 338.402 199.818 338.059 199.978C337.664 199.472 337.03 198.992 336.079 198.992C335.551 198.992 335.129 199.152 334.759 199.339V195.663C334.759 194.598 334.046 193 332.119 193C330.192 193 329.479 194.598 329.479 195.663V203.121L329.32 202.961C329.215 202.828 328.159 201.603 326.812 201.656C325.545 201.683 324.753 202.215 324.251 203.387C323.644 204.826 324.304 205.412 324.489 205.545C324.991 205.891 325.492 206.344 325.545 206.53C325.624 206.77 326.073 208.075 326.944 209.354C327.288 209.86 327.736 210.232 328.053 210.525C328.159 210.632 328.265 210.712 328.344 210.792C328.423 210.871 328.555 211.005 328.687 211.138C328.977 211.404 329.321 211.751 329.638 212.097C329.902 212.417 330.509 213.721 330.852 214.574C330.958 214.813 331.195 215 331.459 215H340.7C340.937 215 341.122 214.894 341.254 214.68C341.36 214.494 344 210.312 344 207.676V202.882C344 201.496 343.392 200.644 342.283 200.298L342.284 200.298ZM342.68 207.649C342.68 209.38 341.122 212.309 340.33 213.641H331.881C331.591 212.949 331.01 211.671 330.614 211.218C330.271 210.818 329.901 210.472 329.584 210.152C329.452 210.019 329.347 209.939 329.268 209.833C329.162 209.726 329.056 209.62 328.898 209.513C328.607 209.274 328.264 208.954 328.027 208.608C327.419 207.729 326.97 206.716 326.786 206.104C326.574 205.465 325.677 204.772 325.307 204.479C325.307 204.399 325.334 204.213 325.466 203.893C325.756 203.201 326.099 202.988 326.865 202.961H326.891C327.499 202.961 328.132 203.547 328.343 203.813L329.663 205.278C329.848 205.491 330.139 205.544 330.403 205.464C330.667 205.358 330.825 205.118 330.825 204.852L330.825 195.663C330.825 195.45 330.878 194.332 332.145 194.332C333.36 194.332 333.465 195.344 333.465 195.663V202.988C333.465 203.361 333.756 203.654 334.125 203.654C334.495 203.654 334.786 203.361 334.786 202.988V201.07C334.97 200.831 335.446 200.325 336.106 200.325C336.739 200.325 337.056 200.804 337.162 200.991V202.988C337.162 203.361 337.452 203.654 337.822 203.654C338.192 203.654 338.482 203.361 338.482 202.988V201.31C338.667 201.177 339.01 200.991 339.406 200.991C339.776 200.991 339.987 201.257 340.066 201.417V202.988C340.066 203.361 340.357 203.654 340.727 203.654C341.096 203.654 341.387 203.361 341.387 202.988V201.63C341.545 201.55 341.73 201.497 341.915 201.55C342.284 201.683 342.707 201.87 342.707 202.855V207.649L342.68 207.649Z"
        fill="black"
      />
      <path
        d="M332.007 193.002C332.004 193.002 332.001 193.002 331.998 193.002L332.003 193L332.007 193.002Z"
        fill={palette[0]}
      />
      <path
        d="M340.333 213.641C341.125 212.309 342.683 209.38 342.683 207.649L342.71 207.649V202.855C342.71 201.87 342.287 201.683 341.917 201.55C341.733 201.497 341.548 201.55 341.39 201.63V202.988C341.39 203.361 341.099 203.654 340.729 203.654C340.36 203.654 340.069 203.361 340.069 202.988V201.417C339.99 201.257 339.779 200.991 339.409 200.991C339.013 200.991 338.67 201.177 338.485 201.31V202.988C338.485 203.361 338.195 203.654 337.825 203.654C337.455 203.654 337.165 203.361 337.165 202.988V200.991C337.059 200.804 336.742 200.325 336.109 200.325C335.449 200.325 334.973 200.831 334.789 201.07V202.988C334.789 203.361 334.498 203.654 334.128 203.654C333.759 203.654 333.468 203.361 333.468 202.988V195.663C333.468 195.344 333.363 194.332 332.148 194.332C330.881 194.332 330.828 195.45 330.828 195.663L330.828 204.852C330.828 205.118 330.669 205.358 330.405 205.464C330.142 205.544 329.851 205.491 329.666 205.278L328.346 203.813C328.135 203.547 327.502 202.961 326.894 202.961H326.868C326.102 202.988 325.759 203.201 325.468 203.893C325.337 204.213 325.31 204.399 325.31 204.479C325.324 204.49 325.338 204.501 325.353 204.513C325.744 204.823 326.585 205.488 326.789 206.104C326.973 206.716 327.422 207.729 328.03 208.608C328.267 208.954 328.61 209.274 328.901 209.513C329.059 209.62 329.165 209.726 329.27 209.833C329.321 209.901 329.383 209.958 329.455 210.026C329.496 210.064 329.54 210.105 329.587 210.152C329.664 210.23 329.745 210.31 329.827 210.391C330.083 210.644 330.357 210.916 330.617 211.218C331.013 211.671 331.594 212.949 331.884 213.641H340.333Z"
        fill={palette[0]}
      />
      <path
        d="M325.353 74.9389C325.26 74.8451 325.133 74.7925 325 74.7925C324.867 74.7925 324.74 74.8451 324.646 74.9389L318.939 80.6464C318.845 80.7401 318.793 80.8673 318.793 80.9999C318.793 81.1325 318.845 81.2596 318.939 81.3534L319.646 82.0609C319.74 82.1546 319.867 82.2073 320 82.2073C320.133 82.2073 320.26 82.1546 320.353 82.0609L325 77.4144L329.646 82.0609C329.74 82.1546 329.867 82.2073 330 82.2073C330.133 82.2073 330.26 82.1546 330.353 82.0609L331.061 81.3534C331.155 81.2596 331.207 81.1325 331.207 80.9999C331.207 80.8673 331.155 80.7401 331.061 80.6464L325.353 74.9389Z"
        fill={palette[15]}
      />
      <path
        d="M330.353 89.9389C330.26 89.8451 330.133 89.7925 330 89.7925C329.867 89.7925 329.74 89.8451 329.646 89.9389L325 94.5854L320.353 89.9389C320.26 89.8451 320.133 89.7925 320 89.7925C319.867 89.7925 319.74 89.8451 319.646 89.9389L318.939 90.6464C318.845 90.7401 318.793 90.8673 318.793 90.9999C318.793 91.1325 318.845 91.2596 318.939 91.3534L324.646 97.0609C324.74 97.1546 324.867 97.2073 325 97.2073C325.133 97.2073 325.26 97.1546 325.353 97.0609L331.061 91.3534C331.155 91.2596 331.207 91.1325 331.207 90.9999C331.207 90.8673 331.155 90.7401 331.061 90.6464L330.353 89.9389Z"
        fill={palette[15]}
      />
    </svg>
  )
})
